#include "HC_SR04.h" 

void HC_SP04_Init(void)
{
	IC_Init();
	
}

float HC_SR04_Get_Dist_cm(void)
{
	//一个数代表1us
	uint32_t time = IC_GetTimes()/2;//us
	float distance = time*0.034;
		
	return distance;
}

